.class public Lcom/estrongs/android/pop/app/premium/b;
.super Les/gl;
.source "PremiumSkuCms.java"


# static fields
.field private static e:Lcom/estrongs/android/pop/app/premium/b;


# instance fields
.field private d:Lcom/estrongs/android/pop/app/premium/c;


# direct methods
.method private constructor <init>()V
    .locals 2

    .line 1
    sget-object v0, Les/fl;->C:Ljava/lang/String;

    const/4 v1, 0x0

    invoke-direct {p0, v0, v1}, Les/gl;-><init>(Ljava/lang/String;Z)V

    return-void
.end method

.method public static declared-synchronized g()Lcom/estrongs/android/pop/app/premium/b;
    .locals 2

    const-class v0, Lcom/estrongs/android/pop/app/premium/b;

    monitor-enter v0

    .line 1
    :try_start_0
    sget-object v1, Lcom/estrongs/android/pop/app/premium/b;->e:Lcom/estrongs/android/pop/app/premium/b;

    if-nez v1, :cond_0

    .line 2
    new-instance v1, Lcom/estrongs/android/pop/app/premium/b;

    invoke-direct {v1}, Lcom/estrongs/android/pop/app/premium/b;-><init>()V

    sput-object v1, Lcom/estrongs/android/pop/app/premium/b;->e:Lcom/estrongs/android/pop/app/premium/b;

    .line 3
    :cond_0
    sget-object v1, Lcom/estrongs/android/pop/app/premium/b;->e:Lcom/estrongs/android/pop/app/premium/b;
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    monitor-exit v0

    return-object v1

    :catchall_0
    move-exception v1

    monitor-exit v0

    throw v1
.end method

.method private h()V
    .locals 2

    .line 1
    :try_start_0
    new-instance v0, Lcom/estrongs/android/pop/app/premium/c;

    const/4 v1, 0x3

    invoke-direct {v0, v1}, Lcom/estrongs/android/pop/app/premium/c;-><init>(I)V

    iput-object v0, p0, Lcom/estrongs/android/pop/app/premium/b;->d:Lcom/estrongs/android/pop/app/premium/c;

    .line 2
    new-instance v0, Lorg/json/JSONObject;

    invoke-virtual {p0}, Lcom/estrongs/android/pop/app/premium/b;->c()Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 3
    iget-object v1, p0, Lcom/estrongs/android/pop/app/premium/b;->d:Lcom/estrongs/android/pop/app/premium/c;

    invoke-virtual {v1, v0}, Lcom/estrongs/android/pop/app/premium/c;->a(Lorg/json/JSONObject;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    return-void
.end method


# virtual methods
.method protected a(Les/ll;)Les/ll;
    .locals 0

    .line 11
    invoke-super {p0, p1}, Les/gl;->a(Les/ll;)Les/ll;

    return-object p1
.end method

.method protected a(Ljava/lang/String;IZ)Les/ll;
    .locals 0

    const-string p3, "{}"

    .line 1
    invoke-virtual {p3, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p3

    if-eqz p3, :cond_0

    .line 2
    invoke-virtual {p0}, Lcom/estrongs/android/pop/app/premium/b;->c()Ljava/lang/String;

    move-result-object p1

    const/4 p2, 0x3

    .line 3
    :cond_0
    :try_start_0
    new-instance p3, Lcom/estrongs/android/pop/app/premium/c;

    invoke-direct {p3, p2}, Lcom/estrongs/android/pop/app/premium/c;-><init>(I)V

    iput-object p3, p0, Lcom/estrongs/android/pop/app/premium/b;->d:Lcom/estrongs/android/pop/app/premium/c;

    .line 4
    new-instance p2, Lorg/json/JSONObject;

    invoke-direct {p2, p1}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 5
    iget-object p1, p0, Lcom/estrongs/android/pop/app/premium/b;->d:Lcom/estrongs/android/pop/app/premium/c;

    invoke-virtual {p1, p2}, Lcom/estrongs/android/pop/app/premium/c;->a(Lorg/json/JSONObject;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception p1

    .line 6
    invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V

    .line 7
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/premium/b;->h()V

    .line 8
    :goto_0
    iget-object p1, p0, Lcom/estrongs/android/pop/app/premium/b;->d:Lcom/estrongs/android/pop/app/premium/c;

    iget-boolean p2, p1, Les/ll;->b:Z

    .line 9
    iget-object p1, p1, Lcom/estrongs/android/pop/app/premium/c;->c:Ljava/util/List;

    if-eqz p1, :cond_1

    invoke-interface {p1}, Ljava/util/List;->isEmpty()Z

    .line 10
    :cond_1
    iget-object p1, p0, Lcom/estrongs/android/pop/app/premium/b;->d:Lcom/estrongs/android/pop/app/premium/c;

    return-object p1
.end method

.method protected c()Ljava/lang/String;
    .locals 1

    const-string v0, "{\n \"enable\": true,\n \"name\": \"wx_sku\",\n \"datas\": {\n   \"sku_datas\": [{\n   \"skuid\": \"1\",\n   \"name\": \"wx\",\n   \"price\": \"168\"\n  }]\n }\n}"

    return-object v0
.end method

.method protected d()Les/ll;
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/premium/b;->d:Lcom/estrongs/android/pop/app/premium/c;

    return-object v0
.end method
